import request from '@/utils/http.js'

//获取年级名称
export const querySnGrade = params => request('get','api/sn/querySnGrade',params)

//修改设备信息
export const updateParentSn = params => request('post','mini/userInfo/updateParentSn',params)

//设备编号获取设备信息
export const querySnInfo = params => request('get','mini/userInfo/querySnInfo',params)

//解除设备绑定
export const relieveBindParentSn = params => request('post','mini/parentSn/relieveBindParentSn',params)

//邀请码获取老师姓名
export const codeGetUsername = params => request('get','api/parentSn/codeGetUsername',params)

//申请授权
export const applyEmpower = params => request('post','api/parentSn/applyEmpower',params)

//解除授权
export const relieveEmpower = params => request('post','api/parentSn/relieveEmpower',params)
//绑定qid
export const bindParentQid = params => request('post','mini/parentSn/bindParentQid',params)
//获取绑定的qid
export const getParentQid = params => request('get','mini/parentSn/getParentQid',params)
//解绑qid

export const relieveBindParentQid = params => request('post','mini/parentSn/relieveBindParentQid',params)

export const getSnInfoById = params => request('get','mini/sn/getSnInfoById',params)

export const loginGanKaoH5 = params => request('get','mini/sn/loginGanKaoH5',params)
